﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeaBattle.Domain.Abstract;
using SeaBattle.Domain.Entities;
using SeaBattle.Domain.RepositoryFactory;

namespace SeaBattle.Domain.Concrete
{
    public class FakePlayerRepository : IPlayerRepository
    {
        public Player CreateNewPlayer(string name, string login)
        {
            return new Player(name, login);
        }

        public void SavePlayer(Player player)
        {
            var playerService = PlayerFactory.CreatePlayerService();
            playerService.RegisterNewPlayer(player);
        }
    }
}
